#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

int main(int argc, char **argv)
{
	FILE *write_fp = NULL;
	char buffer[BUFSIZ + 1];

	sprintf(buffer, "Ones upon a time, there was...\n");
	write_fp = popen("od -c", "w");
	if (write_fp != NULL)
	{
		fwrite(buffer, sizeof(char), strlen(buffer), write_fp);
		pclose(write_fp);
		exit(0);
	}

	exit(-1);
}
